<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NEXT-vivo官方网站</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="headAndFooter/font/iconfont.css">
    <link rel="icon" type="imges/x-icon" href="imgs/favicon.ico" />
    <link rel="stylesheet" href="css/NEXT-官方网站.css">
</head>

<body>
    <header></header>
    <section>
        <div class="banner">
            <div class="banner_logo">
                <img src="imgs/1_0.svg" alt="">
                <p>未来无界</p>
            </div>
        </div>
        <div>
            <ul class="show">
                <li><img src="imgs/1_2.png" alt="">
                    <p>NEX 3S <span>缺货</span></p>
                </li>
                <li><img src="imgs/1_3.png" alt="">
                    <p>NEX 3 & NEX 3...<span>缺货</span></p>
                </li>
                <li><img src="imgs/1_4.png" alt="">
                    <p>NEX双屏版 <span>停产</span></p>
                </li>

                <li><img src="imgs/1_5.png" alt="">
                    <p>NEX旗舰版 <span>停产</span></p>
                </li>
                <li><img src="imgs/1_6.png" alt="">
                    <p>NEX & NEX屏幕... <span>停产</span></p>
                </li>
            </ul>
        </div>
        <div class="nex_35g">
            <div class="nex_35g_top">
                <img src="imgs/1_7.jpg" alt="">
                <p>NEX 3 5G</p>
                <p>无界瀑布屏</p>
                <p>
                    <a href="http://www.vivo.com.cn/vivo/nex3/">进一步了解</a>
                    <a href="http://www.vivo.com.cn/store">门店购买 <span>></span></a>

                </p>
            </div>
            <div class="nex_35g_end">
                <img src="imgs/1_8.jpg" alt="">
                <div class="nex_35g_end_right">
                    <p>NEX 3s</p>
                    <p>高通骁龙865</p>
                    <p>
                        <a href="https://www.vivo.com.cn/vivo/nex3s/">进一步了解</a>
                        <a href="http://www.vivo.com.cn/store">门店购买 <span>></span></a>

                    </p>
                </div>
            </div>
        </div>
        <div class="contrast">
            <p>哪款手机更适合你?</p>
            <p>
                <a href="https://www.vivo.com.cn/vivo/product/contrast?series=14&source=series">比较各款手机
            <span>></span>
            </a>
            </p>
        </div>
        <div class="contrast_box">
            <ul class="contrast_box1">
                <li>
                    <img src="imgs/1_9_0.png" alt="">
                    <p>NEX 3S</p>
                    <ul>
                        <li></li>
                        <li></li>
                        <li></li>
                        <span>液态天河</span>
                    </ul>
                    <p>门店购买</p>
                    <p><a href="https://www.vivo.com.cn/vivo/nex3s" target="_blank">了解更多 <span>></span></a></p>
                </li>
                <li>
                    <img src="imgs/1_10_0.png" alt="">
                    <p>NEX 3 & NEX 3 5G</p>
                    <ul>
                        <li></li>
                        <li></li>
                        <li></li>
                        <li></li>
                        <span>深空流光...</span>
                    </ul>
                    <p>门店购买</p>
                    <p><a href="https://www.vivo.com.cn/vivo/nex3" target="_blank">了解更多 <span>></span></a></p>
                </li>
                <li>
                    <img src="imgs/1_11_0.png" alt="">
                    <p>NEX双屏版</p>
                    <ul>
                        <li></li>
                        <li></li>
                        <span>冰原蓝</span>
                    </ul>
                    <p>缺货</p>
                    <p><a href="https://www.vivo.com.cn/vivo/nexdualdisplay" target="_blank">了解更多 <span>></span></a></p>
                </li>
            </ul>
        </div>
        <div class="mountings">
            <p>精选配件</p>
            <p>为了更好的产品体验，我们为您精选了相关配件</p>
        </div>
        <div class="mountings">
            <p>影像世界</p>
            <p>NEX系列手机拍摄样张</p>
        </div>
        <div class="photo">
            <ul class="photo_top">
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
            <ul class="photo_end">
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
    </section>
    <footer></footer>
</body>

</html>
<script src="jQuery.js"></script>
<script>
    $("header").load("headAndFooter/head.html");
    $("footer").load("headAndFooter/footer.html");
    //contrast_box1 里面的li点击切换颜色和图片
    function Click1(dom, arr, str) {
        this.dom = dom;
        this.click = function() {
            $(this.dom).children("li").click(function() {
                $(this).css({
                    border: " solid 4px #dcdfe6",
                    marginTop: -4
                })
                $(this).siblings("li").css({
                    border: "none",
                    marginTop: 0
                })
                $(this).parent().children("span").html(arr[$(this).index()]);
                $(this).parent().parent().children("img").attr("src", `${str}${$(this).index()}.png`);

            })

        }
    }
    let arr1 = ["液态天河", "深空流光", "琥珀醇"];
    let arr2 = ["深空流光...", "液态天河...", "深空流光", "液态天河"];
    let arr3 = ["冰原蓝", "星漾紫"];
    let str1 = "imgs/1_9_";
    let str2 = "imgs/1_10_";
    let str3 = "imgs/1_11_";
    let c1 = new Click1($(".contrast_box1 li ul:eq(0)"), arr1, str1)
    let c2 = new Click1($(".contrast_box1 li ul:eq(1)"), arr2, str2)
    let c3 = new Click1($(".contrast_box1 li ul:eq(2)"), arr3, str3)
    c1.click();
    c2.click();
    c3.click();
    for (let i = 0; i < 20; i++) {
        $(".photo_top li").eq(i).css({
            backgroundImage: `url(imgs/1_12_${i}.jpg)`,
            left: (40 + $(".photo_top li").width()) * i

        })
        setInterval(function() {
            //   $(".photo_top li").eq(i).animate({
            $(".photo_top li").eq(i).offset({
                    left: $(".photo_top li").eq(i).offset().left - 5
                        // }, 1500)
                }, 10000)
                // }, 50)
        })
    }
    for (let i = 19; i > -1; i--) {
        $(".photo_end li").eq(i).css({
            backgroundImage: `url(imgs/1_12_${i}.jpg)`,
            right: (40 + $(".photo_end li").eq(i).width()) * i
        })
        setInterval(function() {
            $(".photo_end li").eq(i).offset({
                left: $(".photo_end li").eq(i).offset().left + 5

            }, 10000)

        })
    }
</script>